package top.hcode.hoj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import top.hcode.hoj.pojo.entity.user.Session;

@Mapper
@Repository
public interface SessionMapper extends BaseMapper<Session> {


    /**
     * 查询登录记录
     */
    IPage<Session> getSessionList(IPage page,
                                  @Param("userName") String userName,
                                  @Param("nickName") String nickName);
}
